import SnoIcon from "./icon/index";
import SnoBox from "./box/index";
import SnoDialog from "./dialog/index";
import SnoForm from "./form/index";

import "../../theme-chalk/src/index.scss"; // 👈 必须显式引入 SCSS 入口

const components = [SnoIcon, SnoBox, SnoDialog, SnoForm];
const install = (app: any) => {
  components.forEach((component) => {
    app.component(component.name, component);
  });
};
// 支持通过 `app.use()` 安装插件
export default {
  install,
};

// 支持按需导入
export { SnoIcon, SnoBox, SnoDialog, SnoForm };
